package com.flame.workflow.ru.entity;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.flame.workflow.id.entity.WorkflowUser;

import java.util.Map;

/**
 * flame_workflow_ru_task 流程实例任务表
 *
 * @author 吴欣童
 * @since 2023-06-05 14:28:28
 */
public class Task {

    /**
     * 流程实例ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long instanceId;

    /**
     * 实例任务ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long taskId;

    /**
     * 任务名称
     */
    private String taskName;

    /**
     * 任务类型
     */
    private String taskType;

    /**
     * 上级任务ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentTaskId;

    /**
     * 分支任务ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long branchTaskId;

    /**
     * 流程节点ID
     */
    private Integer nodeId;

    /**
     * 任务状态
     */
    private String taskStatus;

    /**
     * 是否删除
     */
    private String isDeleted;

    /**
     * 开始时间
     */
    private String createTime;

    /**
     * 结束时间
     */
    private String endTime;

    /**
     * 任务属性
     */
    private Map<String, String> taskProperties;

    /**
     * 用户信息
     */
    private WorkflowUser userInfo;

    public Long getInstanceId() {
        return instanceId;
    }

    public void setInstanceId(Long instanceId) {
        this.instanceId = instanceId;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public Long getParentTaskId() {
        return parentTaskId;
    }

    public void setParentTaskId(Long parentTaskId) {
        this.parentTaskId = parentTaskId;
    }

    public Long getBranchTaskId() {
        return branchTaskId;
    }

    public void setBranchTaskId(Long branchTaskId) {
        this.branchTaskId = branchTaskId;
    }

    public Integer getNodeId() {
        return nodeId;
    }

    public void setNodeId(Integer nodeId) {
        this.nodeId = nodeId;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Map<String, String> getTaskProperties() {
        return taskProperties;
    }

    public void setTaskProperties(Map<String, String> taskProperties) {
        this.taskProperties = taskProperties;
    }

    public WorkflowUser getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(WorkflowUser userInfo) {
        this.userInfo = userInfo;
    }
}
